import request from '@/utils/request'

const people = {
  // 显示系统平台投入人员情况列表
  list(params) {
    return request.get('/tjpt/platformInfo/budgetInputList',{params});
  },
  // 显示系我的平台投入人员情况列表
  myList(params) {
    return request.get('/tjpt/platformInfo/myBudgetInputList',{params});
  },
  // 新增一次平台人员投入
  add(data) {
    return request.post('/tjpt/platformBudgetInput/add', data);
  },
  // 修改一次平台人员投入信息
  edit(data) {
    return request.post('/tjpt/platformBudgetInput/update', data);
  },
  // 根据投入信息id获取某次人员投入详情
  get(id) {
    return request.get(`/tjpt/platformBudgetInput/detail/${id}`);
  },
  // 根据投入信息id获取某次人员投入详情
  getByPlatformId(id) {
    return request.get(`/tjpt/platformBudgetInput/getByPlatformId/${id}`);
  },
  delete(id){
    return request.post(`/tjpt/platformBudgetInput/delete/${id}`)
  },
}

export default people;
